<?php
/**
 * Created by PhpStorm.
 * User: LiuJiaJun
 * Date: 2019/6/5
 * Time: 21:33
 */

namespace api\storage\validate;


use think\Validate;

class MaterielValidate extends Validate
{

    protected $rule = [
        'materielId' => 'require',
        'type' => 'require',
    ];

    protected $message = [
        'materielId.require' => '物料号不能为空',
        'type.require' => '物料类型不能为空'
    ];

    protected $scene = [
        'modifyType' => ['materielId', 'type'],
    ];
}